package fastjsonDemo.JSONDemo.AnnotationDemo.JSONType;

import com.alibaba.fastjson.annotation.JSONType;

@JSONType(includes = {"name", "sex"})  //序列化只序列化这两个属性
public class Pojo1 {


	private int id;
	private String name;
	private String sex;
	private String password;
	private String phone;

	//*******************


	public int getId() {
		return id;
	}

	public Pojo1 setId(int id) {
		this.id = id;
		return this;
	}

	public String getName() {
		return name;
	}

	public Pojo1 setName(String name) {
		this.name = name;
		return this;
	}

	public String getSex() {
		return sex;
	}

	public Pojo1 setSex(String sex) {
		this.sex = sex;
		return this;
	}

	public String getPassword() {
		return password;
	}

	public Pojo1 setPassword(String password) {
		this.password = password;
		return this;
	}

	public String getPhone() {
		return phone;
	}

	public Pojo1 setPhone(String phone) {
		this.phone = phone;
		return this;
	}
}